/**
 * ChaserEvent
 * event for Chaser utility
 *
 * @author		Allen Chou
 * @version		1.0.0 (last update: Mar 19 2008)
 * @link		http://cjcat2266.deviantart.com
 */

package idv.cjcat.events {
	import flash.display.DisplayObject;
	import flash.events.Event;
	
	public class ChaserEvent extends Event {
		
		public static const REACHED:String = "chaserReached";
		
		public var chaser:DisplayObject;
		public var chaseTarget:*;
		public var chaserX:Number;
		public var chaserY:Number;
		public var targetX:Number;
		public var targetY:Number;
		
		public function ChaserEvent(type:String, chaser:DisplayObject, chaseTarget:*, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			this.chaser = chaser;
			this.chaseTarget = chaseTarget;
			chaserX = chaser.x;
			chaserY = chaser.y;
		}
		
	}
	
}